home *** CD-ROM | disk | FTP | other *** search
/ Sports Illustrated for Kids - Awesome Athletes! / Sports Illustrated for Kids - Awesome Athletes!.iso / iv.dir / 00022_ivDialogue init 2.ls < prev    next >
Encoding:
Text File  |  1996-04-19  |  1.3 KB  |  31 lines

  1. on enterFrame
  2.   global givTextHiliteColor, givTextRegColor, givState, givDebug, givSELECTFORESPRITE, givSELECTBACKSPRITE
  3.   MessagePut("entering frame ivSelect, init 2...")
  4.   put "DUCK2" && the selectType of givState
  5.   if the selectType of givState = #athlete then
  6.     put "Duck2-1"
  7.     set the castNum of sprite givSELECTFORESPRITE to the number of cast "AthleteSelectText"
  8.     set the locH of sprite givSELECTFORESPRITE to 527
  9.     set the locV of sprite givSELECTFORESPRITE to 206
  10.     set the visible of sprite givSELECTFORESPRITE to 1
  11.     updateStage()
  12.     set the foreColor of cast "AthleteSelectText" to givTextRegColor
  13.     set P to the athleteSelectListPtr of givState
  14.     if P <> 0 then
  15.       set the foreColor of line P of field "AthleteSelectText" to givTextHiliteColor
  16.     end if
  17.   else
  18.     put "Duck2-2"
  19.     set the castNum of sprite givSELECTFORESPRITE to the number of cast "TopicSelectText"
  20.     set the locH of sprite givSELECTFORESPRITE to 527
  21.     set the locV of sprite givSELECTFORESPRITE to 248
  22.     set the visible of sprite givSELECTFORESPRITE to 1
  23.     updateStage()
  24.     set the foreColor of cast "TopicSelectText" to givTextRegColor
  25.     set P to the topicSelectListPtr of givState
  26.     if P <> 0 then
  27.       set the foreColor of line P of field "SelectTextBox" to givTextHiliteColor
  28.     end if
  29.   end if
  30. end
  31.